package com.dayangxiaoen.pms.dto;

import com.dayangxiaoen.pms.po.RaiType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;


/**
 * @author dayangxiaoen
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductDTO {

    /**
     * {
     *   "productName": "美容洗护",
     *   "productPicture": "www.baidu.com",
     *   "description": "美白",
     *   "productType": "美容洗护",
     *   "productCategory": "美白",
     *   "supplyName": "XYZ科技有限公司",
     *   "supplyConinf": "18412341234",
     *   "serviceGuarantee": "一年保修，全国联保",
     *   "list": [
     *     {
     *       "id": 1,
     *       "name": "黄金会员专享服务",
     *       "description": "为黄金会员提供额外的售后服务和优惠"
     *     }
     *   ],
     *   "exchangeRestrictions": 2,
     *   "cityWhitelist": "[北京,上海,广州,深圳]",
     *   "cityBlacklist": "",
     *   "timeOn": "2024-6-20T10:00:00Z",
     *   "timeOff": "2025-6-20T10:00:00Z",
     *   "productPrice": 999.99
     * }
     */


    // 商品ID
    private Long productId;

    //商品名称
    private String productName;

    // 商品图片的 超链接地址
    private String productPicture;

    //描述信息
    private String description;

    // 商品的 type
    private String productType;

    // 商品的 category
    private String productCategory;

    //供应商名称
    private String supplyName;

    // 供应商联系信息
    private String supplyConinf;

    //服务保障
    private String serviceGuarantee;

    //黄金会员服务
    private List<RaiType> list;

    //兑换限制
    private int exchangeRestrictions;


    //城市黑名单
    private String cityWhitelist;

    //城市白名单
    private String cityBlacklist;

    //上线时间
    private String timeOn;

    //下线时间
    private String timeOff;

    // 商品的价格
    // 这个price 字段从来没有使用过 不必担心
    private Double productPrice;


}
